The PostScript Printer Font Type ('pfnt') Resource
Each PostScript printer font type ('pfnt'
) resource defines parameters for a specific kind of font that you can use with a PostScript device:
The resources for these kinds of fonts are described in the following sections.
- Adobe
ª character set - Apple character set
- Equivalent character set
- Encoded font
The PostScript Printer Font Type ('pfnt') Resource for the Adobe Character Set
The PostScript printer font type ('pfnt'
) resource for the Adobe character set is used with PostScript drivers to specify information about fonts that use the Adobe character set. This resource is optional.Figure 6-29 shows the structure of a PostScript printer font type resource for the Adobe character set.
Figure 6-29 The PostScript printer font type resource for the Adobe character set
The PostScript printer font type resource for the Adobe character set specifies the memory used by the font and contains a constant value.
Listing 6-26 shows several of the PostScript printer font type resources for the Adobe character set from the Apple LaserWriter printer driver.
- Font memory usage. The amount of memory used for the font.
- The constant value for this resource is 0x00000000.
Listing 6-26 Examples of PostScript printer font type resources for the Adobe character set
resource gxPostscriptPrinterFontType (gxPrintingDriverBaseID + 4, "Helvetica", sysHeap, purgeable) { ROMFont, AdobeCharacterSet {}; }; resource gxPostscriptPrinterFontType (gxPrintingDriverBaseID + 5, "Helvetica-Bold", sysHeap, purgeable) { ROMFont, AdobeCharacterSet {}; }; resource gxPostscriptPrinterFontType (gxPrintingDriverBaseID + 6, "Helvetica-BoldOblique", sysHeap, purgeable) { ROMFont, AdobeCharacterSet {}; };The PostScript Printer Font Type ('pfnt') Resource for the Apple Character Set
The PostScript printer font type ('pfnt'
) resource for the Apple character set is used with PostScript drivers to specify information about fonts that use the Apple character set. This resource is optional.Figure 6-30 shows the structure of a PostScript printer font type resource for the Apple character set.
Figure 6-30 The PostScript printer font type resource for the Apple character set
The PostScript printer font type resource for the Apple character set specifies the memory used by the font, a constant value, and glyph data.
Listing 6-27 shows a PostScript printer font type resource for the Apple character set from the Apple LaserWriter printer driver.
- Font memory usage. The amount of memory used for the font.
- The constant value for this resource is 0x00010000.
- Glyph count. The number of glyphs defined in this resource.
- Glyph bits. The data for the glyphs of this font.
Listing 6-27 An example of a PostScript printer font type resource for the Apple character set
resource gxPostscriptPrinterFontType (gxPrintingDriverBaseID + 7, "Symbol", sysHeap, purgeable) { ROMFont, AppleCharacterSet { 191, $"9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" }; };The PostScript Printer Font Type ('pfnt') Resource for the Equivalent Character Set
The PostScript printer font type ('pfnt'
) resource for the equivalent character set is used with PostScript drivers to specify information about a font that uses the equivalent character set. This resource is optional.Figure 6-31 shows the structure of a PostScript printer front type resource for an equivalent character set.
Figure 6-31 The PostScript printer font type resource for an equivalent character set
The PostScript printer font type resource for an equivalent character set specifies the memory used by the font and contains a constant value.
- Font memory usage. The amount of memory used for the font.
- The constant value for this resource is 0x00020000.
The PostScript Printer Font Type ('pfnt') Resource for an Encoded Font
The PostScript printer font type ('pfnt'
) resource for an encoded font is used with PostScript drivers to specify information about encoded fonts. This resource is optional.Figure 6-32 shows the structure of a PostScript printer font type resource for an encoded font.
Figure 6-32 The PostScript printer font type resource for an encoded font
The PostScript printer font type resource for an encoded font specifies the memory used by the font, a constant value, and information about the platform, script, and language of the font. The platform, script, and language values used in this resource are described in the chapter "Fonts" in Inside Macintosh: QuickDraw GX Typography.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help